/*
 * Utils.fx
 *
 * Created on 20.9.2009, 12:40:
 */
package com.gpsbuddy.utils;


/**
 * @author jonycus
 */
def MOBILE = "mobile";
def DESKTOP = "desktop";
def BROWSER = "browser";
public var isMobile: Boolean = false;
public var isDesktop: Boolean = false;
public var isApplet: Boolean = false;

public function initialize(profile: String): String {
    if (profile.equals(MOBILE))
        isMobile = true;
    if (profile.equals(DESKTOP))
        isDesktop = true;
    if (profile.equals(BROWSER))
        isApplet = true;
    return profile;
}

public function getMultiplicator(): Integer {
    var multi: Integer = 1;
    if (isMobile) multi = 1;
    if (isApplet) multi = 2;
    if (isDesktop) multi = 2;
    return multi;
}




